package com.coursehub.exercise.entity;

import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 收藏题库实体类
 */
@Getter
@Setter
@Entity
@Table(name = "favorite_question_bank")
@NoArgsConstructor
@AllArgsConstructor
public class FavoriteQuestionBank {
    
    @Id
    @Column(name = "favorite_question_bank_id", nullable = false, length = 100)
    private String favoriteQuestionBankId;

    @Column(name = "user_id", nullable = false, length = 100)
    private String userId; // 通过用户管理服务验证

    @Column(name = "course_id", nullable = false, length = 100)
    private String courseId; // 通过课程管理服务验证

    public FavoriteQuestionBank(String favoriteQuestionBankId) {
        this.favoriteQuestionBankId = favoriteQuestionBankId;
    }
}